扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
综合实验:不同网络环境下OSPF的配置3
description Connected to Frame-Relay Network
no ip address
encapsulation frame-relay IETF
serial restart-delay 0
!
interface Serial2/0.1 point-to-point
ip address 192.168.3.1 255.255.255.252
ip ospf network non-broadcast
frame-relay interface-dlci 205
!
interface Serial2/0.2 point-to-point
ip address 192.168.3.5 255.255.255.252
ip ospf network non-broadcast
frame-relay interface-dlci 206
!
interface Serial2/0.3 multipoint
ip address 192.168.4.1 255.255.255.0
ip ospf network point-to-multipoint
frame-relay interface-dlci 207
frame-relay interface-dlci 208
!
!
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
network 192.168.1.0 0.0.0.3 area 0
network 192.168.2.0 0.0.0.255 area 0
network 192.168.3.0 0.0.0.3 area 0
network 192.168.3.4 0.0.0.3 area 0
network 192.168.4.0 0.0.0.255 area 0
neighbor 192.168.3.6 (接口的网络类型为non-broadcast,所以需要指定邻居)
neighbor 192.168.3.2
!
3.路由器R3:
!
interface FastEthernet0/0
description Connected to Switch
ip address 192.168.2.2 255.255.255.0
ip ospf priority 0 (确保R2为DR)
speed 100
full-duplex
!
router ospf 1
router-id 3.3.3.3
log-adjacency-changes
network 192.168.2.0 0.0.0.255 area 0
濡傛灉鎮ㄩ潪甯歌揩鍒囩殑鎯充簡瑙T棰嗗煙鏈€鏂颁骇鍝佷笌鎶€鏈俊鎭紝閭d箞璁㈤槄鑷抽《缃戞妧鏈偖浠跺皢鏄偍鐨勬渶浣抽€斿緞涔嬩竴銆�